<include file="Public/min-header"/>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <div class="row">
            <div class="col-md-12">

                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">回复会员</h3>
                        <a href="{:U('Article/article_message')}" data-toggle="tooltip" title="" class="btn btn-default pull-right" data-original-title="返回"><i class="fa fa-reply"></i></a>
                    </div>
                    <form class="form-horizontal" id="add_post" method="post">
                        <div class="box-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">留言标题</label>
                                <div class="col-sm-8">
                                    <input type="text" disabled class="form-control" value="{$info.title}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">留言内容</label>
                                <div class="col-sm-8">
                                    <input type="text" disabled class="form-control" value="{$info.content}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-sm-2">回复内容</label>
                                <div class="col-sm-8">
                                    <textarea class="form-control" id="reply" name="reply" ></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" name="id" value="{$info.id}" />
                                <div class="col-sm-8">
                                    <button type="reset" class="btn btn-default">重置</button>
                                    <button type="button"  onclick="checkForm()" class="btn btn-info pull-right">提交</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
    <script>
        function checkForm(){
            var reply = $('#reply').val();
            if(reply == ''){
                alert('请输入回复内容');return false;
            }
            $('#add_post').submit();
        }
    </script>
</div>
</body>
</html>